<form action="" id="obj_tableList_{$obj.obj_id}" onsubmit="return false;">
	<table class="tableList" cellpadding="3" cellspacing="1" border="0" width="100%">
		<tr>
			<th>
				<a href="javascript:void(0);" onclick="CMS.listview({$obj.obj_id},'name','{if $order == "name"}{if $ordertype == "asc" OR $ordertype == ""}desc{else}asc{/if}{else}asc{/if}','{$offset}');">Name</a>
				{strip}
				{if $order == "name"}
					&nbsp;{if $ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
				{/if}
				{/strip}
			</th>
			<th>
				<a href="javascript:void(0);" onclick="CMS.listview({$obj.obj_id},'created','{if $order == "created"}{if $ordertype == "asc" OR $ordertype == ""}desc{else}asc{/if}{else}asc{/if}','{$offset}');">erstellt am</a>{strip}
				{if $order == "created"}
					&nbsp;{if $ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
				{/if}
				{/strip}
			</th>
			<th>
				<a href="javascript:void(0);" onclick="CMS.listview({$obj.obj_id},'last_edit','{if $order == "last_edit"}{if $ordertype == "asc" OR $ordertype == ""}desc{else}asc{/if}{else}asc{/if}','{$offset}');">bearbeitet am</a>{strip}
				{if $order == "last_edit"}
					&nbsp;{if $ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
				{/if}
				{/strip}
			</th>
			<th>
				<a href="javascript:void(0);" onclick="CMS.listview({$obj.obj_id},'position','{if $order == "position"}{if $ordertype == "asc" OR $ordertype == ""}desc{else}asc{/if}{else}asc{/if}','{$offset}');">position</a>{strip}
				{if $order == "position"}
					&nbsp;{if $ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
				{/if}
				{/strip}
			</th>
			<th>
				<a href="javascript:void(0);" onclick="CMS.listview({$obj.obj_id},'class_name','{if $order == "class_name"}{if $ordertype == "asc" OR $ordertype == ""}desc{else}asc{/if}{else}asc{/if}','{$offset}');">Klasse</a>{strip}
				{if $order == "class_name"}
					&nbsp;{if $ordertype == "asc"}<img src="img/arrow-up.gif" alt="" border="0" />{else}<img src="img/arrow-down.gif" alt="" border="0" />{/if}
				{/if}
				{/strip}
			</th>
			<th><input type="checkbox" value="" onclick="jQuery('#obj_tableList_{$obj.obj_id}').toggleCheckboxes();" /></th>
		</tr>
		{assign var="bgcolor" value=""}					
		{foreach name="elementloop" item=elm from=$elements}
			<tr>
				{if $bgcolor == ""}
					{assign var="bgcolor" value="tablerow_color"}
				{else}
					{assign var="bgcolor" value=""}
				{/if}
				<td class="{$bgcolor}">
					<a href="javascript:void(0);" onclick="{literal}xajax.request( {ccdsfun: 'ContentEditorOpen', ccdsclass: 'ccdsContentEditor', ccdscomet:1}, {comet:1,parameters: [{obj_id: '{/literal}{$elm.obj_id}{literal}'}]});{/literal}">
						{$elm.obj_name_name}
					</a>
				</td>
				<td class="{$bgcolor}">
					{$elm.obj_created|date_format:"%d.%m.%y / %H:%M"}
				</td>
				<td class="{$bgcolor}">
						{if $elm.obj_last_edit > 0}
							{$elm.obj_last_edit|date_format:"%d.%m.%y / %H:%M"}
						{else}
							&nbsp;
						{/if}
				</td>
				<td class="{$bgcolor}">
					<div id="sortform_{$elm.obj_id}">
						<input type="hidden" name="obj_parent_obj_id" value="{$elm.obj_parent_obj_id}"/>
						<input type="hidden" name="project_id" value="1"/>
					</div>
					<div id="sortable{$elm.obj_id}">{$elm.obj_position}</div>
				</td>			
				<td class="{$bgcolor}">
					{$elm.class_name}
				</td>
				<td class="{$bgcolor}">
					<input type="checkbox" name="obj_list[]" value="{$elm.obj_id}" />
				</td>
			</tr>
		{/foreach}
	</table>
	<div style="float:right;">
		<select size="1" name="obj_action">
			<option value="">---</option>
			<option value="del">löschen</option>
		</select>
		<input type="submit" class="submitbtn" value="Ausführen" onclick="{strip}{literal}xajax.request({ccdsclass:'ccdsContentEditor',ccdsfun:'ContentEditorListAction'},{parameters:[xajax.getFormValues('{/literal}obj_tableList_{$obj.obj_id}{literal}'),
			{
				{/literal}
				obj_id:{$obj.obj_id},
				parameter:xajax.getFormValues('listsearch_'+{$obj.obj_id})
				{literal}
			}
		]});{/literal}{/strip}"/>
	</div>
	<br style="clear:both;" />
	<input type="hidden" name="project_id" value="{$obj.obj_key_project_id}"/>
</form>
<br />
{if $pager.PAGES > 1}
	<div class="">
		Seite:&nbsp;
		{if $offset > 0}<a href="javascript:void(0);"onclick="CMS.ListView({$obj.obj_id},{literal}{{/literal}ordertype:'{$ordertype}',offset:'{$offset-1}'{literal}}{/literal});">&laquo;&nbsp;zurück</a>{/if}
		{foreach name=pagerloop item=pagerentry from=$pager.PAGER}{strip}
				{if $offset == $pagerentry}<strong>{else}<a href="javascript:void(0);"  onclick="CMS.ListView({$obj.obj_id},{literal}{{/literal}ordertype:'{$ordertype}',offset:'{$pagerentry}'{literal}}{/literal});">{/if}
				{$pagerentry+1}
				{if $offset == $pagerentry}</strong>{else}</a>{/if}
			 &nbsp;
		{/strip}{/foreach}
		{if $offset < $pager.PAGES-1}<a href="javascript:void(0);" onclick="CMS.ListView({$obj.obj_id},{literal}{{/literal}ordertype:'{$ordertype}',offset:'{$offset+1}'{literal}}{/literal});">weiter&nbsp;&raquo;</a>{/if}
	</div>
	<br /><br />
{/if}	